package cn.bulibuqi.myblog.service;

import cn.bulibuqi.myblog.bean.Tag;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @author bulibuqi
 * @create 2021-12-21:52
 */
public interface TagService {

    boolean saveTag(Tag tag);

    Tag getTag(Long id);

    Page<Tag> listTag(Page pageInfo);

    boolean updateTag(Long id,Tag tag);

    void deleteTag(Long id);

    Tag getTagByName(String name);
}
